import React, { Component } from 'react';
class customHandle extends Component {
    render() {
        // console.log(this.props)
        // 路径参数：/Custor/handle/:Id => /Custor/handle/100
        // this.props.match.params  ->  存储路径参数的信息
        return (
            <h2 style={{color:'red'}}>
            客户{this.props.match.params.Id?'修改':'新增'}
            </h2>
        );
    }
}

export default customHandle;